/*
 * @Author: liu.lin liu.lin@hzleaper.com
 * @Date: 2023-11-14 11:43:57
 * @LastEditors: liu.lin liu.lin@hzleaper.com
 * @LastEditTime: 2023-11-23 13:41:55
 * @FilePath: \aoi_link_frontend\src\page\fpy-analyse-detail\index.type.ts
 * @Description: 类型
 */
export interface TableType {
  // key: number;
  uid: number; //序号
  uuid: string; //唯一索引
  factory: string; //工厂Site
  line: string; //机台线体
  layerId: string; //前制程lot
  lotId: string; //RTP lot
  grade: string; //品质等级
  yield: string; //Yield
  size: number; //尺寸型号
  sheetId: number; //sheet ID
  panelId: string; //Panel ID
  site: string; //检测工站
  station: string; //检测工位
  genTime: number; //检测时间
  classId: number; //缺陷ID
  className: string; //缺陷类型
  sizeParamName: string; //size参数
  maxSize: number; //最大size值(mm)
  minSize: number; //最小size值(mm)
  flawCount: number; //缺陷数量
  checkResult: number; //检测结果
  againJudgeResult: number; //复盘结果
  isMiss: number; //是否漏检
  isOver: number; //是否过检
}

export interface SearchType {
  searchType: DetailSearchType;
  lotId: string;
  searchKey: SearchKeyType;
  site?: SiteType;
  station?: StationType;
  classId?: number;
  pageSize?: number;
  pageNum?: number;
}

enum SearchKeyType {
  check_count = 'check_count', //检测量
  ok_count = 'ok_count', //ok量
  fin_ok_count = 'fin_ok_count', //最终ok量
  miss_count = 'miss_count', //漏检量
  over_count = 'over_count' //过检量
}

enum DetailSearchType {
  detail = 'detail',
  summury = 'summury'
}

enum SiteType {
  Pol = 'Pol',
  偏贴后 = '偏贴后',
  未指定 = '未指定'
}

enum StationType {
  上反 = '上反',
  下反 = '下反',
  透射 = '透射'
}
